<?php if (!defined("_ECRIRE_INC_VERSION")) return; if (interface_exists('IInvoiceCreator')) return;
/**
 * Aloha Cart
 *
 * @author     Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 * @license    GNU/GPL
 * @package    plugins
 * @subpackage alohacart
 * @copyright  (c) Aleksey Yaroshchuk 2011-2012
 * @link       http://www.spip-contrib.net/AlohaCart
 */
 
/** 
 *  This interface represents Invoice creator
 *
 *  @author Aleksey Yaroshchuk (aleksey.yaroshchuk@gmail.com)
 */
interface IInvoiceCreator {
    /**
	 *  Generates invoice for order end outputs it to stream as file
	 *  @param int $id_order ID of order for wich invoice will be created
	 */
	public function OutputInvoice($id_order);
	
	/**
	 *  Generates invoice as file
	 */
	public function GenerateInvoice($id_order, $filename = '');
}
?>